package com.jboost.modules.area.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jboost.common.system.vo.AreaVo;
import com.jboost.common.system.vo.SysAddressVo;
import com.jboost.modules.area.entity.JboostAddress;
import com.jboost.modules.area.entity.JboostArea;

import java.util.List;
import java.util.Map;

/**
 * @Description: csc_category
 * @Author: cxn
 * @Date:   2021-05-11
 * @Version: V1.0
 */
public interface JboostAreaService extends IService<JboostArea> {
    public AreaVo getByCode(String code);

    /**
     * 根据区域ID和详细地址生成地址对象
     * @param areaId 区/县ID
     * @param address 详细地址
     * @author chr
     * @return
     */
    public JboostAddress createAddress(String areaId, String address);

    /**
     * 根据区/县ID将省市区对象封装成map
     * @param areaId 区/县ID
     * @author chr
     * @return
     */
    public Map<String, AreaVo> getProvinceCityCountyByAreaId(String areaId);

    List<String> getAddressIdList(String areaId);
}
